package com.huadao.cart_ccs.modle;

import com.huadao.cart_ccs.base.BaseSerialPortModel;
import com.huadao.cart_ccs.common.ByteUtils;
import com.huadao.cart_ccs.data.bo.CommandWord;
import com.huadao.cart_ccs.data.bo.MicroscopeBO;
import com.huadao.cart_ccs.data.bo.Protocol;

/**
 * 显微镜
 */
public class MicroscopeModle extends BaseSerialPortModel {
    private String TAG="显微镜";

    public void turnOnLight(){
        Protocol params = ByteUtils.generateProtocol(CommandWord.write,new byte[]{MicroscopeBO.microscope,MicroscopeBO.lightOn},null);
        serialPortRequest(params);
    }

    public void turnOffLight(){
        Protocol params=ByteUtils.generateProtocol(CommandWord.write,new byte[]{MicroscopeBO.microscope,MicroscopeBO.lightOff},null);
        serialPortRequest(params);
    }
}
